package com.sgj.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * @author 沈国纪
 * @date 2021/1/15 10:24
 */
@AllArgsConstructor
@ToString
@Getter
public enum RespBeanEnum {
    // 通用
    SUCCESS(200, "SUCCESS"),
    ERROR(500, "服务端异常"),

    // 登录模块
    PHONE_ERROR(500210, "用户不存在"),
    PASSWORD_ERROR(500211, "密码错误"),
    MOBILE_ERROR(500212, "手机号码格式错误"),
    BIND_ERROR(500213, "参数校验格式错误");

    /**
     * 错误码
     */
    private final Integer code;

    /**
     * 错误信息
     */
    private final String message;
}
